﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Builder
{
    /// <summary>
    /// Final class. Director will create object of this class with Builder help.
    /// </summary>
    public class Tag
    {
        private string name;

        public const string TagPattern = "<{0}{1}>{2}</{0}>"; // Tag patter
        public string Name { get { return name; } }
        public string Content { get; set; }
        public Dictionary<string, string> Attributes { get; set; }

        public Tag(string name)
        {
            this.name = name;
            Attributes = new Dictionary<string, string>();
        }
    }
}
